/**
 * @(#) KLineOriginPoint.java
 */

package org.vsg.stock.core.indicator.coordinate.origpoint;

import java.util.Date;
import java.io.Serializable;

import org.vsg.stock.core.indicator.coordinate.OriginalDataPoint;
import org.vsg.stock.core.kline.DailyKLineStock;

/**
 * X 坐标采用 天为默认'1'单位 , Y 坐标采用收盘价为默认'1'单位 
 * using KLineClose instead of this point
 * 
 * @author Bill vison
 */
public class KLineOriginalDataPoint implements Serializable, OriginalDataPoint
{
	private static final long serialVersionUID = -8319152171791632270L;

	private DailyKLineStock dailyKLineStk;

	/**
	 * @return 
	 */
	@Override
	public Date getXvalue() {
		// TODO Auto-generated method stub
		return dailyKLineStk.getDate();
	}

	/**
	 * @return 
	 */
	@Override
	public double getYvalue() {
		// TODO Auto-generated method stub
		return dailyKLineStk.getClose();
	}

	/**
	 * @param dailyKLineStock
	 */
	public KLineOriginalDataPoint(DailyKLineStock dailyKLineStock) {
		this.dailyKLineStk = dailyKLineStock;
	}

	public DailyKLineStock getDailyKLineStk() {
		return dailyKLineStk;
	}

	public void setDailyKLineStk(DailyKLineStock dailyKLineStk) {
		this.dailyKLineStk = dailyKLineStk;
	}

	
	
}
